<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<div class="board_contents">
	<h1>Contents</h1>

	<div class="contents_article">
		<table id="content_table">
			<tr>
				<td id="board_no">${empBoard.empBoardNo }</td>
				<td id="board_id">${empBoard.name }</td>
				<td id="board_title">${empBoard.title }</td>
				<td id="board_date"><fmt:formatDate
						value="${empBoard.writeDate }" type="both" /><br /> <fmt:formatDate
						value="${empBoard.modifyDate }" type="both" /></td>
			</tr>
			<tr>
				<td colspan=4>
				<div id="board_article">${empBoard.article }</div>
				</td>
			</tr>
			<tr>
				<td colspan=4>CommentCount :${empBoard.commentCount }</td>
			</tr>
			<tr>
				<td colspan=4>readCount : ${empBoard.readCount }</td>
			</tr>
		</table>

	</div>

	<div>
		<a onclick="board_modify(${empBoard.empBoardNo})"> 
		<input type="button" value="수정" id="modify_btn" class="btn"></a> 
		<a onclick="board_delete(${empBoard.empBoardNo})" href="#"> 
		<input type="button" value="삭제" id="delete_btn" class="btn"></a> 
		<a onclick="board_list_with_num(${pageNum})"> 
		<input type="button" value="목록" id="list_btn" class="btn"></a>
	</div>
	<div id="board_comment">
		<textarea id="commentContents" rows="3" cols="100" style="width: 800px;"></textarea> 
		<input type="button" class="btn" value="작성" onclick="board_comment_write(${empBoard.boardNo})" />
		
		<c:forEach var="comment" items="${commentList }">
		<hr>
			${comment.commentContents }/${comment.id }/
			<fmt:formatDate	value="${comment.writeDate }" type="both" />
			
		</c:forEach>
	</div>
</div>
<!-- board_contents div -->
</div>
<!-- board end div  -->
